package com.hxh.basic.project.form.forum;

import com.baomidou.mybatisplus.annotation.TableField;
import com.hxh.basic.project.entity.ClubForumInfo;
import com.hxh.basic.project.form.BaseForm;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.BeanUtils;

import java.util.List;
import java.util.Map;

@Data
@ApiModel("发帖表单数据")
@EqualsAndHashCode(callSuper = false)
public class AddForumForm extends BaseForm<ClubForumInfo> {

    /**
     * 发帖人
     */
    private String operatorId;

    /**
     * 发帖时间
     */
    private String createDate;

    /**
     * 帖子标题
     */
    private String title;

    /**
     * 帖子内容
     */
    private String content;

    /**
     * 帖子类型
     */
    private String type;

    private List<Map<String,String>> invite;




    @Override
    public ClubForumInfo buildEntity() {
        ClubForumInfo clubForumInfo = new ClubForumInfo();
        BeanUtils.copyProperties(this,clubForumInfo);
        return clubForumInfo;
    }
}
